// Input.cpp

#include "Input.h"
//#include "GameStateManager.h"


InputManager inputManager;

InputManager::InputManager()
{
	//the InputManager constructor should initialize the array of the ControllerState objects
	memset(&(m_controllerStates),0,sizeof(ControllerState)*MAX_CONTROLLERS);
};

InputManager::~InputManager()
{
	//
};

void InputManager::tick()
{
	m_controllerStates[0].buttonReleasedMask = m_controllerStates[0].buttonMask & ( ~m_controllerStates[0].buttonMaskTemp );
	m_controllerStates[0].buttonPressedMask = m_controllerStates[0].buttonMaskTemp & ( ~m_controllerStates[0].buttonMask );
	
	m_controllerStates[0].buttonMask = m_controllerStates[0].buttonMaskTemp;
};